﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace executeCommands
{
    class ProcessCommands
    {
        TakeScreenShots windowHandle;
        public ProcessCommands() {
            
            windowHandle = new TakeScreenShots("hypertrm");
        }
        public void send(string keys)
        {
            SendKeys.SendWait(keys);
            System.Threading.Thread.Sleep(200);
        }

        public bool displayMesageBox(string text)
        {
           DialogResult result =   MessageBox.Show(text,"Verify", MessageBoxButtons.YesNo);

           if (result == DialogResult.Yes)
               return true;
           else
               return false;
        }

        public void wait()
        {
            System.Threading.Thread.Sleep(1000);
        }

        public void takePicture(string text)
        {
            windowHandle.TakePicture(text + ".jpg");
        }

        public void executeCommand(string text)
        {
            windowHandle.SetWindowForeGround();
            System.Threading.Thread.Sleep(100);
            send(text);
        }
    }
}
